Fix the 06_block-list_checkremove test. The use of string.find was invalid
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 26 Nov 2005 01:08:26 +0000 (01:08 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sat, 26 Nov 2005 01:08:26 +0000 (01:08 +0000)
commit37e9f9f3b5e302236aaf8b23d5cc1ce20eee40f6
treeb423142283abfbfbff1ac6ea093246d7379963b8
parent9d71c153ea44a59404ef9d31f0bdce2dfe67beef
Fix the 06_block-list_checkremove test.  The use of string.find was invalid
(should be testing against -1, not merely using if or if not), one block-list
command was missing, and the block-detach command is asynchronous (to give the
domain time to close down the device) so we need a time.sleep(1) call before
trying xm block-list.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/tests/block-list/06_block-list_checkremove_pos.py